package cn.com.self.apis.member.service.impl;

import cn.com.self.apis.member.entity.UMemberInfoRelation;
import cn.com.self.apis.member.mapper.MemberInfoRelationMapper;
import cn.com.self.apis.member.service.IMemberInfoRelationService;
import cn.com.selfsoft.smartcity.core.service.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MemberInfoRelationServiceImpl extends BaseServiceImpl<UMemberInfoRelation, String> implements IMemberInfoRelationService {
    @Autowired
    private MemberInfoRelationMapper memberInfoRelationMapper;
    @Override
    public void deleteByMemberInfoId(Long memberInfoId) {
        memberInfoRelationMapper.deleteByMemberInfoId(memberInfoId);
    }

    @Override
    public List<UMemberInfoRelation> queryByMemberInfoId(String memberInfoId) {
        return memberInfoRelationMapper.queryByMemberInfoId(memberInfoId);
    }
}